Planet For Application Life Development Presents
Technology World

Explore and uptodate your technology skills...

News Navigation: First Previous Next Last

Barcode Reader

Technology World

A barcode reader is an electronic device for reading printed barcodes. Like a flatbed scanner, it consists of a light source, a lens and a light sensor translating optical impulses into electrical ones. Additionally, nearly all barcode readers contain decoder circuitry analyzing the barcode's image data provided by the sensor and sending the barcode's content to the scanner's output port.

Pen-type readers consist of a light source and photodiode that are placed next to each other in the tip of a pen or wand. To read a bar code, the person holding the pen must move the tip of it across the bars at a relatively uniform speed. The photodiode measures the intensity of the light reflected back from the light source as the tip crosses each bar and space in the printed code. The photodiode generates a waveform that is used to measure the widths of the bars and spaces in the bar code. Dark bars in the bar code absorb light and white spaces reflect light so that the voltage waveform generated by the photo diode is a representation of the bar and space pattern in the bar code. This waveform is decoded by the scanner in a manner similar to the way Morse code dots and dashes are decoded.

Laser scanners work the same way as pen type readers except that they use a laser beam as the light source and typically employ either a reciprocating mirror or a rotating prism to scan the laser beam back and forth across the bar code. As with the pen type reader, a photodiode is used to measure the intensity of the light reflected back from the bar code. In both pen readers and laser scanners, the light emitted by the reader is rapidly varied in brightness with a data pattern and the photodiode receive circuitry is designed to detect only signals with the same modulated pattern.

CCD readers use an array of hundreds of tiny light sensors lined up in a row in the head of the reader. Each sensor measures the intensity of the light immediately in front of it. Each individual light sensor in the CCD reader is extremely small and because there are hundreds of sensors lined up in a row, a voltage pattern identical to the pattern in a bar code is generated in the reader by sequentially measuring the voltages across each sensor in the row. The important difference between a CCD reader and a pen or laser scanner is that the CCD reader is measuring emitted ambient light from the bar code whereas pen or laser scanners are measuring reflected light of a specific frequency originating from the scanner itself.

Early barcode scanners, of all formats, almost universally used the then-common RS-232 serial interface. This was an electrically simple means of connection and the software to access it is also relatively simple, although needing to be written for specific computers and their serial ports.

With the popularity of the PC and its standard keyboard interface, it became ever easier to connect physical hardware to a PC and so there was commercial demand similarly to reduce the complexity of the associated software. "Keyboard wedge" hardware plugged between the PC and its normal keyboard, with characters from the barcode scanner appearing exactly as if they had been typed at the keyboard. This made the addition of simple barcode reading abilities to existing programs very easy, without any need to change them, although it did require some care by the user and could be restrictive in the content of the barcodes that could be handled.

How a Barcode Reader Works?

Barcode readers are extremely simple devices made up of a light source, a photo diode and a simple decoder. It is also very easy to add barcode reading capabilities to any PC program.

Barcode scanners begin by illuminating the code with red light. The sensor of the barcode scanner detects the reflected light from the illumination system and generates an analog signal with varying voltage that represent the intensity (or lack of intensity) of the reflection. The converter changes the analog signal to a digital signal which is fed to the decoder. The decoder interprets the digital signal, does that math required to confirm and validate that the barcode is decipherable, converts it into ASCII text, formats the text and sends it to the computer the scanner is attached to.

Laser - This type of illumination method uses a single point red laser diode similar to a laser pointer. The point of light is expanded into a line by oscillating the laser into a stationary mirror, or projecting the point into an oscillating mirror. This illumination method is very popular because of the working distances typically achieved are superior to the point illumination or linear LED illumination methods. Typical working distances are from 1" to 18". By increasing the power of the laser and decreasing the angle of oscillation, ranges of over 20 feet can be obtained.

LED Imager - The linear and full imager is very similar to the CCD device, with some important changes. In linear imagers, the amount of illumination is increased by using high light LED's, and the sensing photocells are more sensitive. Linear imaging technology mimics both the range and focus of laser scanners.

In an imaging barcode scanner, the sensor covers the entire scan target and generates a 2-dimensional wave form. In both cases, this analog signal is sent to the converter. The converter changes the analog signal to a digital signal. This signal is the digital representation of what the sensor detected from the reflected light. Now that the barcode scanner has a digital signal, the signal is transferred to the barcode scanner decoder .